<?php

namespace App\Http\Controllers\Baidu;

use Illuminate\Http\Request;
use	Exception;

include_once ('../app/libary/Baidu/sms_service_AccountService.php');
include_once ('../app/libary/Baidu/sms_service_AdgroupService.php');

use sms_service_AccountService;
use GetAccountInfoRequest;
use UpdateAccountInfoRequest;
use AccountInfo;
use getAccountInfoResponse;


use sms_service_KeywordService;
use GetWordRequest;



class IndexController
{

    /**
     * @return mixed|string
     * 账户信息
     */
    public function getAccountInfo()
    {

        $accountFields =  ['userId','balance','cost','payment','budgetType','isDynamicCreative','isDynamicTagSublink','isDynamicTitle',
            'budget','regionTarget','excludeIp','openDomains','regDomain','budgetOfflineTime','weeklyBudget','userStat','userLevel','dynamicCreativeParam'];

        $service = new  sms_service_AccountService();

        $getAccountInfoRequest = new  GetAccountInfoRequest();      //  输入信息：getAccountInfoRequest

        $getAccountInfoRequest->setAccountFields($accountFields);
        $getAccountInfo = $service->getAccountInfo($getAccountInfoRequest);

        $getAccountInfo = json_encode($getAccountInfo);
        return $getAccountInfo;
        
    }

    
    
    /**
     *关键词信息
     */

    public function GetWord()
    {

    }
    

}


